package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 联络单位的实体类
 */
public class WaContactUnit extends BaseEntity {
    private long unitId;
    private String unitName;
    private long sortOrder;
    // 逻辑删除标志：1=正常，0=已删除
    private char delFlag;
     private List<WaContactUser> waContactUserList;

    public List<WaContactUser> getWaContactUserList() {
        return waContactUserList;
    }

    public void setWaContactUserList(List<WaContactUser> waContactUserList) {
        this.waContactUserList = waContactUserList;
    }

    public long getUnitId() {
        return unitId;
    }

    public void setUnitId(int unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public long getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(int sortOrder) {
        this.sortOrder = sortOrder;
    }

    public char getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(char delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("unitId", getUnitId())
                .append("unitName", getUnitName())
                .append("sortOrder", getSortOrder())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }

}
